package com.ihr360.sharedservice.api;

import com.ihr360.sharedservice.model.StatutoryVacation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface StatutoryVacationApi {
    @GetMapping(value = "/workingCalendar", produces = MediaType.APPLICATION_JSON_VALUE)
    List<StatutoryVacation> getWorkCalendarOfMonth(@RequestParam(name = "year") Integer year, @RequestParam(name = "month") Integer month);


    @GetMapping(value = "/statutoryHolidayVacationBetweenDay", produces = MediaType.APPLICATION_JSON_VALUE)

    List<StatutoryVacation> getStatutoryHolidayVacationBetweenDay(@RequestParam(name = "startDate")
                                                                  String startDate,
                                                                  @RequestParam(name = "endDate") String endDate);
}